<?php
namespace app\obd\validate;

use think\Validate;

class CartypeValidate extends Validate{
    protected $rule = [
        'cartype_id' => ['require','regex' =>'/^[+]{0,1}(\d+)$/'],
        'logo_path' => ['require'],
        'listNum' => ['number'],
        'pagenum' => ['number'],
        'name' => ['number'],
    ];

    protected $message = [
        'cartype_id' => '参数错误',
        'logo_path' => '请上传图片'
    ];
}